﻿using ATM.Common;
using System;
using ATM.DAO;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ATM.BUS
{
    public class CardTransferBUS
    {
        public static SqlConnection con;
        public static bool CheckAccountReceived_ID(string accountReceivedID)
        {
            return TransferMoneyDAO.CheckAccountReceivedID(accountReceivedID);
         
        }

        public static double Get_Balance(string accountReceivedID)
        {
            return TransferMoneyDAO.GetBalance(accountReceivedID);
        }

        public static string NameReceived_ID(string accountReceivedID)
        {
            return TransferMoneyDAO.NameReceivedID(accountReceivedID);
        }

        public static bool Transfer(string CusID, string ReciveID, double amount)
        {
            return TransferMoneyDAO.TransferMoney(CusID, ReciveID, amount);
        }

    }


}
